//
//  MCashMoney.m
//  RRQS
//
//  Created by kyjun on 16/4/22.
//
//

#import "MCashMoney.h"

@implementation MCashMoney

-(instancetype)initWithItem:(NSDictionary *)item{
    self = [super init];
    if(self){
        _rowID = [item objectForKey:@"itemid"];
        _userID = [item objectForKey:@"uid"];
        _orderID = [item objectForKey:@"main_id"];
        _moneyType = [item objectForKey:@"change_type"];
        _money = [item objectForKey:@"amount"];
        _createDate = [item objectForKey:@"creat_time"];
        _mark = [item objectForKey:@"mark"];
    }
    return self;
}


-(instancetype)initWithCash:(NSDictionary *)item{
    self = [super init];
    if(self){
        _rowID = [item objectForKey:@"itemid"];
        _userID = [item objectForKey:@"uid"];
        _orderID = [item objectForKey:@"main_id"];
        _moneyType = [item objectForKey:@"change_type"];
        _money = [item objectForKey:@"amount"];
        _createDate = [item objectForKey:@"creat_time"];
        _mark = [item objectForKey:@"mark"];
        _userName = [item objectForKey:@"unname"];
        _bankCard = [item objectForKey:@"bank"];
        _bankName = [item objectForKey:@"bank_name"];
        
    }
    return self;
}

@end
